package tpo.lmhconsumer.lmhconsumer.service.impl;

import com.github.pagehelper.PageInfo;
import dto.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Stock_order;
import tpo.lmhconsumer.lmhconsumer.feign.StockClient;
import tpo.lmhconsumer.lmhconsumer.service.StockService;

import java.util.List;
import java.util.Map;

@Service
public class StockServiceImpl implements StockService {
    @Autowired
    StockClient stockClient;

    @Override
    public Dto<Integer> addStock_order(GetStock getStock) {
        return stockClient.addStock_order(getStock);
    }

    @Override
    public Dto<Integer> upStock_order(GetStock getStock) {
        return stockClient.upStock_order(getStock);
    }

    @Override
    public Dto<Integer> nextStock_order(Map map) {
        return stockClient.nextStock_order(map);
    }

    @Override
    public Dto<PageInfo<ShowStock>> getStock_order(Map map) {
        return stockClient.getStock_order(map);
    }

    @Override
    public Dto<List<ShowStock_list>> getStock_list(Map map) {
        return stockClient.getStock_list(map);
    }

    @Override
    public Dto<Integer> delStock_order(String s) {
        return stockClient.delStock_order(s);
    }

    @Override
    public Dto<PageInfo<ShowDb_order>> getDb_order(Map map) {
        return stockClient.getDb_order(map);
    }

    @Override
    public Dto<Integer> addDb_order(GetStock getStock) {
        return stockClient.addDb_order(getStock);
    }

    @Override
    public Dto<Integer> nextDb_order(Map map) {
        return stockClient.nextDb_order(map);
    }

    @Override
    public Dto<PageInfo<ShowStock_list>> getMingXi(Map map) {
        return stockClient.getMingXi(map);
    }
}
